package com.chuan.it_market.dao;

import com.chuan.it_market.pojo.dto.ResponseDTO;
import com.chuan.it_market.pojo.entity.UserOrder;
import com.chuan.it_market.pojo.vo.UserOrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserOrderDao {
    int deleteByPrimaryKey(Integer ono);

    int insert(UserOrder record);

    int insertSelective(UserOrder record);

    UserOrder selectByPrimaryKey(Integer ono);

    int updateByPrimaryKeySelective(UserOrder record);

    int updateByPrimaryKey(UserOrder record);

    List<UserOrderVO> selectByBno(Integer user);

    List<UserOrderVO> selectBySno(Integer user);

    List<UserOrderVO> selectOrderByStatus(@Param("status") String status, @Param("bno") Integer bno);

}